package com.sunshenshen.bean;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Student implements Serializable{
	
	/**
	 * 实现序列化
	 */
	private static final long serialVersionUID = 1L;

	private Integer sid;
	
	private String sname;
	
	private String sex;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;

	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Student(Integer sid, String sname, String sex, Date birthday) {
		super();
		this.sid = sid;
		this.sname = sname;
		this.sex = sex;
		this.birthday = birthday;
	}

	public Student() {
		super();
	}

	@Override
	public String toString() {
		return "Student [sid=" + sid + ", sname=" + sname + ", sex=" + sex + ", birthday=" + birthday + "]";
	}
	
	

}
